/**
 * 
 */
package np.com.abhishek.scrambler.ui;

import java.awt.FlowLayout;
import java.awt.Toolkit;

import javax.swing.ImageIcon;
import javax.swing.JDialog;
import javax.swing.JFrame;
import javax.swing.JLabel;

import np.com.abhishek.ui.WidgetFactory;

/**
 * @author Abhishek
 * 
 */
public class AboutScrambler extends JDialog {
	private final static long serialVersionUID = 5L;

	// displays the information about the system developed
	JLabel lbl;

	AboutScrambler(JFrame owner) {
		super(owner, "About Scrambler", true);
		setLayout(new FlowLayout());
		Toolkit kit = Toolkit.getDefaultToolkit();
		int ht = (int) kit.getScreenSize().getHeight();
		int wd = (int) kit.getScreenSize().getWidth();

		lbl = new JLabel();
		lbl.setIcon(new ImageIcon(WidgetFactory.getInstance().createImage(
				"AboutScrambler.png")));

		add(lbl);
		setResizable(false);
		setLocation(wd / 4, ht / 4);
		setSize(505, 260);
		setVisible(true);
	}
}
